﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace CIS.Server.EFCore.Migrations
{
    /// <inheritdoc />
    public partial class init : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "Ports",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "TEXT", nullable: false),
                    QualifiedLocationId = table.Column<string>(type: "TEXT", nullable: true),
                    PortID = table.Column<string>(type: "TEXT", nullable: true),
                    PortName = table.Column<string>(type: "TEXT", nullable: true),
                    PortType = table.Column<string>(type: "TEXT", nullable: true),
                    PortStatus = table.Column<int>(type: "INTEGER", nullable: false),
                    CassetteStatus = table.Column<string>(type: "TEXT", nullable: true),
                    PortUseType = table.Column<string>(type: "TEXT", nullable: true),
                    CassetteType = table.Column<string>(type: "TEXT", nullable: true),
                    CassetteSeqNo = table.Column<int>(type: "INTEGER", nullable: true),
                    CassetteID = table.Column<string>(type: "TEXT", nullable: true),
                    PPID = table.Column<string>(type: "TEXT", nullable: true),
                    LotID = table.Column<string>(type: "TEXT", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Ports", x => x.Id);
                });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "Ports");
        }
    }
}
